import requst from '@/utils/request'
//分页查询

export function page(d) {
    const data = {pageNo: d.pageNo,pageSize: d.pageSize,data: d}
    return requst({
        url: "article/page",
        method: "post",
        data,
       
    })
}
//获取文章
export function getOne(url) {
    return requst({
        url: "article/getOne/" + url,
        method: "get",
    })
}
//修改文章
export function edit(data) {
    return requst({
        url: "article",
        method: "put",
        data,
    })
}
//增加
export function add(data) {
    return requst({
        url: "article",
        method: "post",
        data,
    })
}
//删除
export function deleteArticle(data) {
    return requst({
        url: "article/del/" + data,
        method: "delete",
        data,
    })
}